package com.hyt.it.ogt.pj.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hyt.it.ogt.data.model.vo.StudentAnswerVO;
import com.hyt.it.ogt.pj.model.entity.StudentAnswer;
import com.hyt.it.ogt.pj.model.vo.StudentAnswerVo;
import com.hyt.it.ogt.ykcj.feign.model.CandidateAnswersResultEntity;

import java.util.List;

/**
 * <p>
 * 考生作答表 服务类
 * </p>
 *
 * @author qiaozj
 * @since 2020-07-09
 */
public interface IStudentAnswerService extends IService<StudentAnswer> {

    /**
     * 初始化考生答案
     * @param projectId
     * @param admission
     */
	List<StudentAnswerVo> initStudentAnswer(String projectId, String admission);

    /**
     * 通过评卷项目id查询考生答案
     * @param projectId
     * @return
     */
    List<StudentAnswer> selectByProject(String projectId);

    /**
     * 保存考生答案
     * @param projectId
     * @param studentAnswerVOs
     */
    void saveStudentAnswer(String projectId, List<StudentAnswerVO> studentAnswerVOs);
    
    
    /****
     * 获取考生的考试数据
     * @param projectId
     * @param studentId
     * @return
     */
    CandidateAnswersResultEntity queryCandidateAnswers(String projectId, String studentId);
}
